/**
 * 
 */
package com.gragra.applications;

import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;

/**
 * @author Christoph Teichmann
 * 20.10.2013
 */
public class ReplaceVbarWithSlash
{
	/**
	 * @param args
	 */
	public static void main(String[] args) throws IOException
	{
		BufferedReader input = new BufferedReader(new FileReader(args[0]));
		BufferedWriter output = new BufferedWriter(new FileWriter(args[1]));
		String line;
		boolean first = true;
		while((line = input.readLine()) != null)
		{
			if(first)
			{first = false;}
			else
			{output.newLine();}
			line = line.trim();
			line = line.replaceAll("\\|", "/");
			output.write(line);
		}
		output.close();
		input.close();
	}
}